#include <QApplication>
#include <QDateTime>
#include <QDebug>

#include "testadapter.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QString createdAt = "2024-03-29T08:26:50+00:00";
    // auto dt = QDateTime::fromString(createdAt, "yyyy-MM-ddTHH:mm:ss+zzz");
    auto dt = QDateTime::fromString(createdAt, Qt::ISODateWithMs);
    qDebug() << dt;
    
    Adapter ada;
    QDBusConnection::sessionBus().registerService("com.test.adapter");
    QDBusConnection::sessionBus().registerObject("/com/test/adapter", "com.test.adapter", &ada);
    DBusAdaptors adaptor(&ada);

    return a.exec();
}
